<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>汽车demo</title>
  <style>
    body {
      margin: 0;
      background-color: #000;
      font-family: Monospace;
      font-size: 13px;
      line-height: 24px;
      overscroll-behavior: none;
      color: #444;
      overflow: hidden;
      margin: 0;
    }

    a {
      color: #08f;
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    button {
      cursor: pointer;
      text-transform: uppercase;
    }

    canvas {
      display: block;
      outline: none;
    }

    #info {
      position: absolute;
      top: 0px;
      width: 100%;
      padding: 10px;
      box-sizing: border-box;
      text-align: center;
      -moz-user-select: none;
      -webkit-user-select: none;
      -ms-user-select: none;
      user-select: none;
      pointer-events: none;
      z-index: 1; /* TODO Solve this in HTML */
    }

    a, button, input, select {
      pointer-events: auto;
    }

    .dg.ac {
      -moz-user-select: none;
      -webkit-user-select: none;
      -ms-user-select: none;
      user-select: none;
      z-index: 2 !important; /* TODO Solve this in HTML */
    }
  </style>
</head>
<body>
  <div id="info">
    <span>Body: <select id="body-mat"></select></span>
    <span>Details: <select id="rim-mat"></select></span>
    <span>Glass: <select id="glass-mat"></select></span>
    <br><br>
    <span>Follow camera: <input type="checkbox" id="camera-toggle"></span>
  </div>

  <script src="./_cars.js" type="module"></script>
</body>
</html>